﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="Site.Master" CodeBehind="ManageAdvertisements.aspx.vb"
    Inherits="DotNetCore.BannerManagement.ManageAdvertisements" Title="Banner Management - Manage Advertisements" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="text-align: center;">
        <asp:GridView ID="gvAdvertisements" runat="server" AutoGenerateColumns="false">
            <EmptyDataTemplate>
                You have no advertisements</EmptyDataTemplate>
            <Columns>
                <asp:BoundField HeaderText="Active" DataField="Active" />
                <asp:BoundField HeaderText="Name" DataField="Name" />
                <asp:BoundField HeaderText="URL" DataField="URL" />
                <asp:ImageField HeaderText="Banner Image" DataAlternateTextField="AlternateText"
                    DataImageUrlField="ID" DataImageUrlFormatString="../Advertisement/LoadBanner.aspx?ID={0}" />
                <asp:BoundField HeaderText="Alternate Text" DataField="AlternateText" />
                <asp:BoundField HeaderText="Start Date" DataField="StartDate" />
                <asp:BoundField HeaderText="End Date" DataField="EndDate" />
            </Columns>
        </asp:GridView>
        <div>
            Self editing of a banner advertisement is still currently under development. Please contact support to have any details changed.
        </div>
    </div>
    
    <br />
    <!-- This is hard coded at the moment. Future iterations will allow database
    -->
    <h3>
        Add Banner Advertisement</h3>
    <asp:GridView ID="gvProducts" runat="server" DataKeyNames="ZoneId" AutoGenerateColumns="false"
        AutoGenerateSelectButton="true">
        <Columns>
            <asp:BoundField HeaderText="Name" DataField="Name" />
            <asp:BoundField HeaderText="Description" DataField="Description" />
            <asp:BoundField HeaderText="Cost" DataField="Cost" DataFormatString="${0} per month" />
        </Columns>
    </asp:GridView>
</asp:Content>
